﻿using DevExpress.LookAndFeel;
using System;
using System.Drawing;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace GUI
{
    public static class MsgC
    {
        public static void MsgOK(string infoMsg)
        {
            XtraMessageBox.Show(infoMsg, "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }

        public static void MsgError(string infoMsg)
        {
            XtraMessageBox.Show(infoMsg, "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }

        public static void MsgWarning(string infoMsg)
        {
            XtraMessageBox.Show(infoMsg, "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Warning);
        }

        public static DialogResult MsgQuestionYN(string infoMsg)
        {
            return XtraMessageBox.Show(infoMsg, "Thông báo", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
        }
    }
}
